//
//  LoopPictureCollectionViewCell.swift
//  LoopWeibo
//
//  Created by loop安 on 2016/12/11.
//  Copyright © 2016年 loop. All rights reserved.
//

import UIKit

class LoopPictureCollectionViewCell: UICollectionViewCell {

    @IBOutlet weak var imgPic: UIImageView!
    
    @IBOutlet weak var gifIcon: UIImageView!
    
    var picInfo:LoopHomePicture?{
        didSet{
            let url = picInfo?.imageUrl
            imgPic.sd_setImage(with: url)

            gifIcon.isHidden = picInfo!.thumbnail_pic!.hasSuffix(".gif") ? false : true
        }
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()

    
    }

}
